import { onMounted, onBeforeUnmount } from 'vue';

export function useDarkTheme(): void {
  onMounted(() => {
    document.documentElement.classList.add('dark');
  });
  onBeforeUnmount(() => {
    document.documentElement.classList.remove('dark');
  });
}
